package main

import (
	"fmt"
	"github.com/astaxie/beego"
	"main/env"
	"main/wc"
)

func main() {
	beego.Get("api/login", wc.Login)
	beego.Get("api/get_table", wc.GetTable)
	beego.Post("api/rate", wc.Rate)
	beego.Get("api/get_rate", wc.GetRate)
	beego.Run(fmt.Sprintf(":%s", env.Port))
}
